<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Заказ / создание</title>
</head>
<body>
<form method="post">
    {% csrf_token %}
    {{ form.as_p }}
    {{ orderitems.management_form }}
    {% for inner_form in orderitems %}
        {{ inner_form.as_p }}
    {% endfor %}
    <input type="submit" value="save">
</form>
</body>
</html>